﻿using System;

namespace QDP.Platform.Silverlight
{
    /// <summary>
    /// 表示组件自定义属性的类。
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
    public class WidgetMetaAttribute : Attribute
    {
        /// <summary>获取或设置元数据唯一标识</summary>
        public string Key { get; set; }
        /// <summary>获取或设置元数据描述</summary>
        public string Desc { get; set; }
        /// <summary>获取或设置元数据默认值</summary>
        public object DefaultValue { get; set; }
        /// <summary>获取或设置枚举类型对象的枚举值</summary>
        public string EnumValues { get; set; }
        /// <summary>获取或设置元数据分组</summary>
        public string Category { get; set; }

        public WidgetMetaAttribute() { Category = NParams.CategoryCustom; }
    }
}